// 定义初始状态
const initialState = {
  fondName: null,
};

// 定义 reducer 函数，根据不同的 action 类型更新状态
const mutifondsReducer = (state = initialState, action: any) => {
  switch (action.type) {
    case 'SETNAME':
      console.log('payload', action.payload)
      return { fondName: action.payload };
    default:
      return state;
  }
};
export default mutifondsReducer;
